<template>
	<text decode class="columnbox wdh-100 content">
		{{docContent}}
	</text>
</template>

<script>
	export default {
		data() {
			return {
				name: '',
				id: '',
				docContent: ''
			};
		},
		onLoad(options) {
			this.name = options.name
			this.id = options.id

			this.getDetail()
		},
		methods: {
			getDetail() {
				let id = this.id
				this.$req.get(`/xcx/doc/${id}`).then(res => {
					this.docContent = res.data.data.docContent
					uni.setNavigationBarTitle({
						title: res.data.data.docName
					})
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.content {
		font-size: 28rpx;
		padding: 20rpx;
		line-height: 50rpx;
	}
</style>